import Moadl from '../components/solt'
import Vue from 'vue'

let moadl =Vue.extend(Moadl)

let MODEL=(list)=>{

    let MHO =new moadl

    MHO.$mount(document.createElement('div'))
    document.body.appendChild(MHO.$el)

    MHO.show=true
    if(list.title){
        MHO.list.title=list.title
    }
    if(list.content){
        MHO.list.content=list.content
    }
    if(list.cancel){
        MHO.list.cancel=list.cancel
    }
    if(list.sure){
        MHO.list.sure=list.sure
    }
  
   
    return MHO
}

export default MODEL